Ver código fonte

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.
Saggi Mizrahi 9 anos atrás
pai
commit
87f5bedead
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      spine-lua/RegionAttachment.lua

+ 2 - 2
spine-lua/RegionAttachment.lua

@@ -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