app/assets/javascripts/resizing/rails/progressbar.js in resizing-rails-0.1.0.pre vs app/assets/javascripts/resizing/rails/progressbar.js in resizing-rails-0.1.0.pre2
- old
+ new
@@ -1,6 +1,6 @@
-window.Resizing ||= {}
-window.Resizing.Rails ||= {}
+if(window.Resizing === undefined) { window.Resizing = {} }
+if(window.Resizing.Rails === undefined) { window.Resizing.Rails = {} }
// Usage
// min = 0
// max = 100
// bar = new Resizing.Rails.ProgressBar(document.querySelector('...'), min, max)