parseInt() radix #3

Merged
merged 1 commit into from Apr 25, 2012
Jump to file
+1 −1
Split
View
@@ -1,6 +1,6 @@
$.fn.rucksack = function(options){
options = options || {}
- var self = this, els = self.children(), b = parseInt(options.width) || 960, cl = options.class || 'rucksack';
+ var self = this, els = self.children(), b = parseInt(options.width,10) || 960, cl = options.class || 'rucksack';
function knapsack(a, b){
for(var k = 1; k <= a.length; k++)
for (var y = 1; y <= b; y++)