Change null to nil

nil is the actual keyword. 'null' works in non strict mode as all undeclared variables are considered 'nil' in non strict mode.
This commit is contained in:
Saggi Mizrahi 2015-12-05 21:23:50 +02:00
parent f6e4027ef1
commit 87f5bedead

View File

@ -45,8 +45,8 @@ function RegionAttachment.new (name)
offset = {},
uvs = {},
r = 1, g = 1, b = 1, a = 1,
path = null,
rendererObject = null,
path = nil,
rendererObject = nil,
regionOffsetX = 0, regionOffsetY = 0,
regionWidth = 0, regionHeight = 0,
regionOriginalWidth = 0, regionOriginalHeight = 0