Permalink
Browse files

MINOR Setting entwine warning level outside of entwine block, as it c…

…hanges the meaning of the $ alias and doesn't apply the new level
  • Loading branch information...
1 parent f57caec commit 483704c8942012c1dae7a07339066446709fe8c3 @chillu chillu committed Dec 13, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 admin/javascript/LeftAndMain.js
@@ -4,6 +4,9 @@
(function($) {
$.metadata.setType('html5');
+
+ // setup jquery.entwine
+ $.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
$.entwine('ss', function($){
@@ -29,10 +32,7 @@
spinner.show();
}
$(window).bind('resize', positionLoadingSpinner).trigger('resize');
-
- // setup jquery.entwine
- $.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
-
+
// global ajax error handlers
$.ajaxSetup({
error: function(xmlhttp, status, error) {

0 comments on commit 483704c

Please sign in to comment.